﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BUS;
using DTO;
namespace DA1
{
    public partial class Search_SoLuong_ConLaiTrongKho : Form
    {
        public Search_SoLuong_ConLaiTrongKho()
        {
            InitializeComponent();
        }

        private void Search_SoLuong_ConLaiTrongKho_Load(object sender, EventArgs e)
        {
        //Load len cmb
            Search_BUS Search_bus = new Search_BUS();
            cmb_LoaiXe.DataSource = Search_bus.GetCmdXe();
            cmb_LoaiXe.DisplayMember = "TenLoai1";
            cmb_LoaiXe.ValueMember = "MaLoai";
            cmb_LoaiNL.DataSource = Search_bus.GetCmdLoaiNL();
            cmb_LoaiNL.DisplayMember = "TenNLG";
            cmb_LoaiNL.ValueMember = "MaNLG";
        }
        private void btn_Search_Click(object sender, EventArgs e)
        {
            Search_BUS Search_bus = new Search_BUS();
            DGV_Search_Loai_TenHang.DataSource = Search_bus.GetBtnSearch(cmb_LoaiNL.SelectedValue.ToString(), cmb_LoaiXe.SelectedValue.ToString());
        }        
    }
}
